Skip to content

Conversation

@shadaj
Copy link
Contributor

@shadaj shadaj commented Jul 24, 2025

Fixes #2418

We ran into this in https://github.com/hydro-project/hydro, where we programmatically invoke Cargo to compile generated Rust sources, so without a TTY the hash of arguments would differ causing cache misses. This ignores that argument, and I validated on Hydro that it enables cache hits in the non-TTY builds.

shadaj added a commit to hydro-project/hydro that referenced this pull request Jul 24, 2025
… to improve caching

sccache includes all environment variables starting with `CARGO_` in the cache key, so this would cause misses for all trybuild compilation. Along with mozilla/sccache#2424, this improves compilation caching.
shadaj added a commit to hydro-project/hydro that referenced this pull request Jul 24, 2025
… to improve caching (#1943)

sccache includes all environment variables starting with `CARGO_` in the
cache key, so this would cause misses for all trybuild compilation.
Along with mozilla/sccache#2424, this improves
compilation caching.
jhellerstein pushed a commit to hydro-project/hydro that referenced this pull request Jul 25, 2025
… to improve caching (#1943)

sccache includes all environment variables starting with `CARGO_` in the
cache key, so this would cause misses for all trybuild compilation.
Along with mozilla/sccache#2424, this improves
compilation caching.
@shadaj shadaj force-pushed the ignore-diagnostic-width branch from be74fe5 to ef0ee4a Compare August 4, 2025 23:09
@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.58%. Comparing base (c7ad05d) to head (7ae50e2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2424   +/-   ##
=======================================
  Coverage   71.57%   71.58%           
=======================================
  Files          65       65           
  Lines       36365    36372    +7     
=======================================
+ Hits        26029    26036    +7     
  Misses      10336    10336           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shadaj shadaj force-pushed the ignore-diagnostic-width branch from ef0ee4a to e8521b1 Compare August 20, 2025 17:00
@shadaj shadaj force-pushed the ignore-diagnostic-width branch from 6f7c3cc to c03937b Compare September 4, 2025 17:50
@shadaj
Copy link
Contributor Author

shadaj commented Sep 4, 2025

@sylvestre I think you'll need to approve the GitHub Actions workflow; the linting errors after the original merge should be fixed!

@sylvestre
Copy link
Collaborator

done

@shadaj
Copy link
Contributor Author

shadaj commented Sep 4, 2025

Looks like the failures are from main 😢

@shadaj
Copy link
Contributor Author

shadaj commented Sep 21, 2025

Friendly bump @sylvestre! The changes should be good to go.

@sylvestre sylvestre force-pushed the ignore-diagnostic-width branch 2 times, most recently from 52fa2aa to 215d25e Compare September 23, 2025 12:36
@sylvestre
Copy link
Collaborator

Could you please add tests to verify that we aren't regressing in the future? thanks

@sylvestre
Copy link
Collaborator

Very sorry it took that long to get to this

@shadaj shadaj force-pushed the ignore-diagnostic-width branch from 215d25e to 7ae50e2 Compare September 25, 2025 01:30
@shadaj
Copy link
Contributor Author

shadaj commented Sep 25, 2025

@sylvestre added the test! And please don't apologize, really appreciate all the work you do as a maintainer :)

@sylvestre sylvestre merged commit 9fd99c7 into mozilla:main Sep 25, 2025
55 checks passed
@sylvestre
Copy link
Collaborator

thanks

@shadaj shadaj deleted the ignore-diagnostic-width branch September 25, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] Ignore --diagnostic-width when computing hash

3 participants